package Lab4;

public class Pair<E, T> {
    private E first;
    private T second;

    public Pair(E f, T s){
        first = f;
        second = s;
    }

    @Override
    public String toString(){
        return first + " " + second;
    }

    public static void main(String[] args){
        Pair<Integer, Double> p1 = new Pair<>(4, 5.7);
        Pair<Integer, String> p2 = new Pair<>(1, "I love you");
        System.out.println(p1+"\n"+p2);
    }
}
